package com.sky.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

@Schema(description = "文章返回的数据格式")
public class ArticleVO implements Serializable {
    //主键id

    private Long id;

    //标题

    private String title;

    //内容

    private String  content;

    //分类id

    private Long categoryId;

    //作者id

    private Long userId;

    //浏览量

    private Long viewCount;

    //点赞量

    private Long likeCount;

    //评论数

    private Long commentCount;

    //是否置顶（0否，1是）

    private Integer isTop;

    //是否推荐

    private Integer isRecommend;

    //创建时间

    private LocalDateTime createTime;

    //更新时间

    private LocalDateTime updateTime;
}
